<?php

namespace app\common\model;

use think\Model;

class WorldCupMatchRankModel extends Model
{

    protected $connection = 'db_sports';
    
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = '';
    protected $updateTime = 'updated_at';

    public function matchInfo()
    {
        return $this->hasOne(MatchesScheduleModel::class, 'match_id', 'match_id')->with('footballmatch');
    }

}
